package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.UUID;

/**
 * 仓储实体类
 */
@Table(name = "c_storage")
public class Storage {

    @Id
    @Column(name = "storage_id", length = 64)
    private String storageId= UUID.randomUUID().toString();//主键

    @Column(name = "storage_name", length = 20)
    private String storageName;//仓储名

    @Column(name = "storage_country", length = 20)
    private String storageCountry;//国家

    @Column(name = "storage_province", length = 20)
    private String storageProvince;//省

    @Column(name = "storage_city", length = 20)
    private String storageCity;//城市

    @Column(name = "storage_county", length = 20)
    private String storageCounty;//区/县

    @Column(name = "storage_address", length = 64)
    private String storageAddress;//详细地址

    @Column(name = "storage_longitude", length = 64)
    private String storageLongitude;//经度

    @Column(name = "storage_latitude", length = 64)
    private String storageLatitude;//纬度

    @Column(name = "storage_sort", length = 11)
    private Integer storageSort=0;//排序

    @Column(name = "storage_status", length = 11)
    private Integer storageStatus=0;//状态值：启用--0，-1禁用

    @Column(name = "storage_del", length = 11)
    private Integer storageDel=0;//逻辑删除：0默认，-1删除

    @Column(name = "create_time", length = 20)
    private String createTime= DateUtils.timeFormat(System.currentTimeMillis());//创建时间;

    @Column(name = "del_time", length = 20)
    private String delTime;//删除时间   

    @Column(name = "update_time", length = 20)
    private String updateTime;//修改时间

    public String getStorageId() {
        return storageId;
    }

    public void setStorageId(String storageId) {
        this.storageId = storageId == null ? null : storageId.trim();
    }

    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName == null ? null : storageName.trim();
    }

    public String getStorageCountry() {
        return storageCountry;
    }

    public void setStorageCountry(String storageCountry) {
        this.storageCountry = storageCountry == null ? null : storageCountry.trim();
    }

    public String getStorageProvince() {
        return storageProvince;
    }

    public void setStorageProvince(String storageProvince) {
        this.storageProvince = storageProvince == null ? null : storageProvince.trim();
    }

    public String getStorageCity() {
        return storageCity;
    }

    public void setStorageCity(String storageCity) {
        this.storageCity = storageCity == null ? null : storageCity.trim();
    }

    public String getStorageCounty() {
        return storageCounty;
    }

    public void setStorageCounty(String storageCounty) {
        this.storageCounty = storageCounty == null ? null : storageCounty.trim();
    }

    public String getStorageAddress() {
        return storageAddress;
    }

    public void setStorageAddress(String storageAddress) {
        this.storageAddress = storageAddress == null ? null : storageAddress.trim();
    }

    public String getStorageLongitude() {
        return storageLongitude;
    }

    public void setStorageLongitude(String storageLongitude) {
        this.storageLongitude = storageLongitude == null ? null : storageLongitude.trim();
    }

    public String getStorageLatitude() {
        return storageLatitude;
    }

    public void setStorageLatitude(String storageLatitude) {
        this.storageLatitude = storageLatitude == null ? null : storageLatitude.trim();
    }

    public Integer getStorageSort() {
        return storageSort;
    }

    public void setStorageSort(Integer storageSort) {
        this.storageSort = storageSort;
    }

    public Integer getStorageStatus() {
        return storageStatus;
    }

    public void setStorageStatus(Integer storageStatus) {
        this.storageStatus = storageStatus;
    }

    public Integer getStorageDel() {
        return storageDel;
    }

    public void setStorageDel(Integer storageDel) {
        this.storageDel = storageDel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}